-- GENERATED SPELL FOR [Vladek] --


function spell0_27547(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(32714,pUnit)
pUnit:RegisterEvent('Sorts_27547', 8292, 1)
end

function Sorts_27547(pUnit, Event)
local choix_sorts_27547 = math.random(0, 0)
if choix_sorts_27547 == 0 then
pUnit:RegisterEvent('spell0_27547', 1, 1)
end
end

function mob27547_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27547', math.random(1500, 3000), 1)
end

function mob27547_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27547_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27547_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27547, 1, 'mob27547_Action')
RegisterUnitEvent(27547, 2, 'mob27547_Leave')
RegisterUnitEvent(27547, 3, 'mob27547_Kill')
RegisterUnitEvent(27547, 4, 'mob27547_Die')
